﻿using Ndns.CacheEventLogger;
using Ndns.ServerHost.Abstractions;
using System;

namespace Ndns.ServerHost.Builder
{
    public static class CacheEventLoggerServiceBuilder
    {
        public static IServiceBuilder AddCacheEventLogger(this IServiceBuilder services)
        {
            if (services == null)
                throw new ArgumentNullException(nameof(services));

            services.Add(typeof(ICacheEventLoggerService), new CacheEventLoggerService());

            return services;
        }
    }
}
